<table border="1" width="100%">
  <tr>
    <td>Drug</td>
    <td>Score</td>
    <td>Total # Ratings</td>
    <td>Category</td>
  </tr>
  <tr>
    <td w>
      <strong><%=h(sideffect[:drug].name)%>&nbsp;&nbsp;&nbsp;</strong><%= link_to("Show Chart!", :action => "show_drug2", :id => sideffect[:drug].id) %><br /><%= link_to_remote("Delete", :url => {:action => "delete_drug", :id => sideffect[:drug].id}, :update => "sideffects") %>
    </td>
    <td>
      <strong><%= sprintf("%2.1f", sideffect[:rating]) + " (" + sideffect[:rating_rank][0].to_s + "/" + sideffect[:rating_rank][1].to_s + ")"%></strong>
    </td>
    <td>
      <strong><%= sideffect[:popularity][0].to_s + " (" + sprintf("%2.2f", sideffect[:popularity][1]) + "%)" %></strong>
    </td>
    <td>
      <% form_remote_tag(:html => {:id => "select_#{sideffect[:drug].id}_categories"}, :url => {:action => :change_category, :id => sideffect[:drug].id}, :update => "drug#{sideffect[:drug].id}_header") do %>
        <%= select_tag(:category, options_from_collection_for_select(sideffect[:categories], "id", "name",sideffect[:current_category_id].to_i), {:onchange => "$('select_#{sideffect[:drug].id}_categories').onsubmit()"}) %>
      <% end %>
    </td>
  </tr>
</table>
